<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*,dao.*,entity.*" %>
<html style="text-align: center">
<head>
    <title>网络书签</title>
    <script type="text/javascript">
        function del(id){
            if(confirm("确定要删除吗？"))
            {
                location.href="dodelete.jsp?id="+id;
            }
        }
    </script>
    <style type="text/css">
        .h1{
            font-family: 宋体;
        }
        .table{
            border: 0px;
            text-align: center;
            margin: auto;
        }
        .td{
            width: 80px;
        }

    </style>
</head>
<body>
<h1 class="h1">我的书签</h1>
<table class="table">
    <tr><td class="td">序号</td><td class="td">书签名称</td><td class="td">书签类别  </td><td class="td">操作</td></tr>
<%
  markDao mk = new markDao();
  List<Profile> list= new ArrayList<Profile>();
  list = mk.getAllPro();
  for(int i = 0; i< list.size();i++){
      Profile pro = list.get(i);
      %>
    <tr><td><%=pro.getId()%></td><td><a style="text-decoration: none" href="<%=pro.getMarkURL()%>"><%=pro.getMarkTitle()%></a></td><td><%=pro.getMarkType()%></td><td><a style="text-decoration: none" href="#" onclick="del(<%=pro.getId()%>)">删除</a> </td></tr>
<%
  }
%></table>
</body>
</html>
